<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml/DTD/xhtml-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<base href="/main" />
    <?=$this->headTitle()->setSeparator('/');?>

    <?= $this->headLink()
        ->headLink(array('rel' => 'favicon','href' => '/img/favicon.ico'),'PREPEND')
        ->prependStylesheet($this->baseUrl('/css/admin.css'))
        ->prependStylesheet($this->baseUrl('/twitterbootstrap/css/bootstrap.min.css'))
        ->prependStylesheet($this->baseUrl('/js/jquery/css/start/jquery-ui-1.9.2.custom.min.css'))
    ?>
    <?= $this->JQuery()?>


<script type="text/javascript">
</script>
</head>
<body class="carbon">
<div id="header">

		<img src="images/admin-logo.png" id="image"/>
		<ul class="logout">
			<li class="log"><a href="<?=$this->url(array(),'main');?>"  onclick="return !window.open(this.href)">На сайт</a></li>
            <li class="log"><a href="<?=$this->url(array(),'admin-logout');?>" title="Выход"><img src="/images/system-log-out.png"></a></li>
            <li><span id="admin"><?php if(isset(Zend_Auth::getInstance()->getStorage()->read()->data[0]['userlogin'])):?>
                    <?= Zend_Auth::getInstance()->getStorage()->read()->data[0]['userlogin']?>
                <?php else: ?>
                    <?= Zend_Auth::getInstance()->getStorage()->read()->login ?>
                </span></li>
           <?php endif;?>
		<ul/>
	
</div>
<div id="menuwrapper">
<div id="menu">
	<?php if(Zend_Auth::getInstance()->getIdentity()->status==='admin' || Zend_Auth::getInstance()->getIdentity()->status === 'demo_admin'):?>
        <div class="well">
            <ul class="nav nav-list">
                <li><a href="<?= $this->url(array(),'admin-site-info')?>"><i class="icon-list"></i>Информация</a></a></li>
                <li><a href="<?= $this->url(array(),'admin-site')?>"><i class="icon-home"></i>Сайт</a></a></li>
                <li><a href="<?= $this->url(array(),'catalog-admin')?>"><i class="icon-list-alt"></i>Список статей</a></a></li>
                <li><a href="<?= $this->url(array(),'admin-category-index')?>"><i class="icon-th-list"></i>Категории</a></a></li>
                <li><a href="<?= $this->url(array(),'admin-comments-all')?>"><i class="icon-comment"></i>Комментарии</a></a></li>
                <li><a href="<?= $this->url(array(),'admin-users')?>"><i class="icon-user"></i>Пользователи</a></a></li>
                <li><a href="<?= $this->url(array(),'admin-settings')?>"><i class="icon-wrench"></i>Настройки</a></a></li>
            </ul>
        </div>
	<?php else:?>

	
	<?php endif;?>

 </div>
</div>

<div id="content">
	<?=$this->layout()->content;?>
</div>

</body>
</html>
